Optimal. Leaf size=436 \[ -\frac {(B d-A e) \tan ^{-1}\left (\frac {\sqrt {c d^2-b d e+a e^2} x}{\sqrt {d} \sqrt {e} \sqrt {a+b x^2+c x^4}}\right )}{2 \sqrt {d} \sqrt {e} \sqrt {c d^2-b d e+a e^2}}-\frac {\left (\sqrt {a} B-A \sqrt {c}\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 \sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {c} d-\sqrt {a} e\right ) \sqrt {a+b x^2+c x^4}}+\frac {a^{3/4} \left (\frac {\sqrt {c} d}{\sqrt {a}}+e\right )^2 (B d-A e) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \Pi \left (-\frac {\left (\sqrt {c} d-\sqrt {a} e\right )^2}{4 \sqrt {a} \sqrt {c} d e};2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{4 \sqrt [4]{c} d e \left (c d^2-a e^2\right ) \sqrt {a+b x^2+c x^4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.27, antiderivative size = 436, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {1722, 1117,
1720} \begin {gather*} \frac {a^{3/4} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \left (\frac {\sqrt {c} d}{\sqrt {a}}+e\right )^2 (B d-A e) \Pi \left (-\frac {\left (\sqrt {c} d-\sqrt {a} e\right )^2}{4 \sqrt {a} \sqrt {c} d e};2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{4 \sqrt [4]{c} d e \sqrt {a+b x^2+c x^4} \left (c d^2-a e^2\right )}-\frac {(B d-A e) \text {ArcTan}\left (\frac {x \sqrt {a e^2-b d e+c d^2}}{\sqrt {d} \sqrt {e} \sqrt {a+b x^2+c x^4}}\right )}{2 \sqrt {d} \sqrt {e} \sqrt {a e^2-b d e+c d^2}}-\frac {\left (\sqrt {a}+\sqrt {c} x^2\right ) \left (\sqrt {a} B-A \sqrt {c}\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 \sqrt [4]{a} \sqrt [4]{c} \sqrt {a+b x^2+c x^4} \left (\sqrt {c} d-\sqrt {a} e\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1117
Rule 1720
Rule 1722
Rubi steps
\begin {align*} \int \frac {A+B x^2}{\left (d+e x^2\right ) \sqrt {a+b x^2+c x^4}} \, dx &=-\frac {\left (\sqrt {a} B-A \sqrt {c}\right ) \int \frac {1}{\sqrt {a+b x^2+c x^4}} \, dx}{\sqrt {c} d-\sqrt {a} e}+\frac {\left (\sqrt {a} (B d-A e)\right ) \int \frac {1+\frac {\sqrt {c} x^2}{\sqrt {a}}}{\left (d+e x^2\right ) \sqrt {a+b x^2+c x^4}} \, dx}{\sqrt {c} d-\sqrt {a} e}\\ &=-\frac {(B d-A e) \tan ^{-1}\left (\frac {\sqrt {c d^2-b d e+a e^2} x}{\sqrt {d} \sqrt {e} \sqrt {a+b x^2+c x^4}}\right )}{2 \sqrt {d} \sqrt {e} \sqrt {c d^2-b d e+a e^2}}-\frac {\left (\sqrt {a} B-A \sqrt {c}\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 \sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {c} d-\sqrt {a} e\right ) \sqrt {a+b x^2+c x^4}}+\frac {\sqrt [4]{a} \left (\frac {\sqrt {c} d}{\sqrt {a}}+e\right ) (B d-A e) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \Pi \left (-\frac {\left (\sqrt {c} d-\sqrt {a} e\right )^2}{4 \sqrt {a} \sqrt {c} d e};2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{4 \sqrt [4]{c} d e \left (\sqrt {c} d-\sqrt {a} e\right ) \sqrt {a+b x^2+c x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 10.34, size = 298, normalized size = 0.68 \begin {gather*} -\frac {i \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}} \left (B d F\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )+(-B d+A e) \Pi \left (\frac {\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c d};i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )\right )}{\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} d e \sqrt {a+b x^2+c x^4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 359, normalized size = 0.82
method | result | size |
default | \(\frac {B \sqrt {2}\, \sqrt {4-\frac {2 \left (-b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \sqrt {4+\frac {2 \left (b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \EllipticF \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )}{4 e \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}+\frac {\left (A e -B d \right ) \sqrt {2}\, \sqrt {1+\frac {b \,x^{2}}{2 a}-\frac {x^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {1+\frac {b \,x^{2}}{2 a}+\frac {x^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \EllipticPi \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, -\frac {2 a e}{\left (-b +\sqrt {-4 a c +b^{2}}\right ) d}, \frac {\sqrt {-\frac {b +\sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {2}}{\sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}\right )}{e d \sqrt {-\frac {b}{a}+\frac {\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}\) | \(359\) |
elliptic | \(\frac {B \sqrt {2}\, \sqrt {4+\frac {2 b \,x^{2}}{a}-\frac {2 x^{2} \sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {4+\frac {2 b \,x^{2}}{a}+\frac {2 x^{2} \sqrt {-4 a c +b^{2}}}{a}}\, \EllipticF \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )}{4 e \sqrt {-\frac {b}{a}+\frac {\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}+\frac {\sqrt {2}\, \sqrt {1+\frac {b \,x^{2}}{2 a}-\frac {x^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {1+\frac {b \,x^{2}}{2 a}+\frac {x^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \EllipticPi \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, -\frac {2 a e}{\left (-b +\sqrt {-4 a c +b^{2}}\right ) d}, \frac {\sqrt {-\frac {b +\sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {2}}{\sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}\right ) A}{d \sqrt {-\frac {b}{a}+\frac {\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}-\frac {\sqrt {2}\, \sqrt {1+\frac {b \,x^{2}}{2 a}-\frac {x^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {1+\frac {b \,x^{2}}{2 a}+\frac {x^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \EllipticPi \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, -\frac {2 a e}{\left (-b +\sqrt {-4 a c +b^{2}}\right ) d}, \frac {\sqrt {-\frac {b +\sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {2}}{\sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}\right ) B}{e \sqrt {-\frac {b}{a}+\frac {\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}\) | \(565\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + B x^{2}}{\left (d + e x^{2}\right ) \sqrt {a + b x^{2} + c x^{4}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {B\,x^2+A}{\left (e\,x^2+d\right )\,\sqrt {c\,x^4+b\,x^2+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________